import 'package:flutter/material.dart';
import '../../core/app_export.dart';
import '../../core/utils/app_colors.dart';

class AppDecoration {
  // Fill decorations
  static BoxDecoration get fillPrimaryPr8 => BoxDecoration(
        color: AppColors.primary,
    borderRadius: BorderRadius.circular(8)
      );
  static BoxDecoration get fillWhiteA => BoxDecoration(
        color: AppColors.whiteA700,
      );

  static BoxDecoration get nationallyMap => BoxDecoration(
        color: AppColors.whiteA700,
    image: DecorationImage(
      image: AssetImage(AppAssets.nationaltyMap),
      fit: BoxFit.fill
    )
      );

  static BoxDecoration get gradientWhiteAToBlue200 =>  const BoxDecoration(
      gradient: LinearGradient(
        begin: Alignment.topCenter,
        end: Alignment.bottomCenter,
        colors: [
          Color.fromRGBO(196, 196, 196, 0.2), // rgba(196, 196, 196, 0.2)
          Color.fromRGBO(217, 217, 217, 0.4), // rgba(217, 217, 217, 0.4)
          Color.fromRGBO(2, 58, 170, 0.4), // rgba(2, 58, 170, 0.4)
        ],
        stops: [0.0, 0.304, 1.0], // Corresponding stops for each color
      ));
// Gradient decorations
  static BoxDecoration get gradientWhiteAToBlue => BoxDecoration(
        gradient: LinearGradient(
          begin: const Alignment(0.5, 0),
          end: const Alignment(0.5, 1),
          colors: [AppColors.whiteA700, AppColors.primary],
        ),
      );

  static BoxDecoration get withMapImage => BoxDecoration(
      color: AppColors.whiteA700,
      image: DecorationImage(
          image: AssetImage(AppAssets.imgGroup69),
          fit: BoxFit.fill
      )
      );
  static BoxDecoration get gradientWhiteAToBlue900 => BoxDecoration(
        gradient: LinearGradient(
          begin: const Alignment(1, -.6),
          end: const Alignment(1, 0.5),

          colors: [AppColors.whiteA700, AppColors.primary],
        ),
      );
  static BoxDecoration get gradientWhiteAToBlueGray => BoxDecoration(
        gradient: LinearGradient(
          begin: const Alignment(2, 0),
          end: const Alignment(0.5, 1),
          colors: [AppColors.whiteA700, AppColors.blueGray200],
        ),
      );
// Outline decorations
  static BoxDecoration get outlineBlack => BoxDecoration(
        color: AppColors.primary,
        boxShadow: [
          BoxShadow(
            color: AppColors.black900,
            spreadRadius: 2.w,
            blurRadius: 2.w,
            offset: const Offset(
              1,
              1,
            ),
          )
        ],
      );
  static BoxDecoration get outlineBlue => BoxDecoration(
        color: AppColors.whiteA700,
        boxShadow: [
          BoxShadow(
            color: AppColors.primary,
            spreadRadius: 2.w,
            blurRadius: 2.w,
            offset: const Offset(
              1,
              1,
            ),
          )
        ],
      );
}

class BorderRadiusStyle {
  // Custom borders
  static BorderRadius get customBorderTL7 => BorderRadius.horizontal(
        left: Radius.circular(7.w),
      );
// Rounded borders
  static BorderRadius get roundedBorder5 => BorderRadius.circular(
        5.w,
      );
}
